home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / BORLAND TURBO / TASKVCLD.PAK / ADOPT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  1.1 KB  |  36 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows
  3. // Copyright (c) 1996 by Borland International, All Rights Reserved
  4. //
  5. // ADOPT.H
  6. //
  7. // Declares the function that lets OWL adopt the invisible
  8. // main window that the VCL TApplication object always
  9. // creates.
  10. //
  11. // If you omit the adoption step, you end up with two windows that
  12. // both think they're the main one, and one of them doesn't close.
  13. //
  14. // We expect to make this step unnecessary before shipping.  
  15. //----------------------------------------------------------------------------
  16. #if !defined(_ADOPT_H)
  17. #define _ADOPT_H
  18.  
  19. #if !defined(_INC_WINDOWS)
  20. # if !defined(STRICT)           // required for OWL/VCL compatibility
  21. #   define STRICT;
  22. # endif
  23. # include <windows.h>
  24. #endif
  25.  
  26. // Makes newParent the parent window of the VCL form.
  27. // (Normally the parent of a form is a hidden window managed
  28. // by the VCL TApplication object.)
  29. // 
  30. // A good place to call this is SetupWindow because that's
  31. // the first time you have an HWND to pass in.
  32. //
  33. void AdoptVCLAppWindow(HWND newParent);
  34.  
  35. #endif // _ADOPT_H
  36.